Image Structure
Texture maps and bitmaps are defined using pixel images (or pixmaps). To specify a pixel image, you fill in an image structure, defined by theTQAImage
data structure.
struct TQAImage { long width; long height; long rowBytes; void *pixmap; }; typedef struct TQAImage TQAImage;
Field Description
width
- The width, in pixels, of the pixmap.
height
- The height, in pixels, of the pixmap.
rowBytes
- The distance, in bytes, from the beginning of one row of the image data to the beginning of the next row of the image data. (For some low-cost accelerators, setting the value in this field to the product of the value in the
width
field and the pixel size improves performance.)pixmap
- A pointer to the image data.